package cn.com.inossem.model;

import java.io.Serializable;

import android.os.Parcel;
import android.os.Parcelable;

public final class LoginresultData implements Parcelable, Serializable {

	/**
     * 
     */
	public String username;

	public int isPreferences;

	public UserInfo userInfo = new UserInfo();

	public LoginresultData() {
	}

	// Parcelable management
	private LoginresultData(Parcel in) {
		username = in.readString();
		isPreferences = in.readInt();
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(username);
		dest.writeInt(isPreferences);
	}

	public static final Parcelable.Creator<LoginresultData> CREATOR = new Parcelable.Creator<LoginresultData>() {
		public LoginresultData createFromParcel(Parcel in) {
			return new LoginresultData(in);
		}

		public LoginresultData[] newArray(int size) {
			return new LoginresultData[size];
		}
	};
}
